package com.geeksaga.service;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

import com.geeksaga.dao.SnsConnectDao;
import com.geeksaga.domain.SnsConnect;

/**
 * @author newbie
 * @since 0.1
 */
@Service
public class SnsConnectServiceImpl implements SnsConnectService {

    protected static final Log logger = LogFactory.getLog(SnsConnectServiceImpl.class);
    
    @Autowired private SnsConnectDao snsConnectDao;
    
    /* (non-Javadoc)
     * @see com.geeksaga.service.SnsConnectService#add(com.geeksaga.domain.SnsConnect)
     */
    public SnsConnect add(SnsConnect snsConnect) throws DataAccessException {
        snsConnectDao.add(snsConnect);
        
        return snsConnect;
    }

    /* (non-Javadoc)
     * @see com.geeksaga.service.SnsConnectService#remove(com.geeksaga.domain.SnsConnect)
     */
    public int remove(SnsConnect snsConnect) throws DataAccessException {
        return snsConnectDao.remove(snsConnect);
    }

    /* (non-Javadoc)
     * @see com.geeksaga.service.SnsConnectService#modify(com.geeksaga.domain.SnsConnect)
     */
    public int modify(SnsConnect snsConnect) throws DataAccessException {
        return snsConnectDao.modify(snsConnect);
    }

    /* (non-Javadoc)
     * @see com.geeksaga.service.SnsConnectService#find(com.geeksaga.domain.SnsConnect)
     */
    public SnsConnect find(SnsConnect snsConnect) throws DataAccessException {
        return snsConnectDao.find(snsConnect);
    }
}